Skip to content

[wpical] Remove absolute path in generated minimath file - #9389

Merged
PeterJohnson merged 1 commit into
wpilibsuite:mainfrom
Gold856:remove-absolute-path-in-minimath
Sep 7, 2026
Merged

[wpical] Remove absolute path in generated minimath file#9389
PeterJohnson merged 1 commit into
wpilibsuite:mainfrom
Gold856:remove-absolute-path-in-minimath

Conversation

@Gold856

@Gold856 Gold856 commented Sep 6, 2026

Copy link
Copy Markdown
Member

This fixes issues where running the script at a different location changes the file unnecessarily.

@Gold856
Gold856 requested a review from a team as a code owner September 6, 2026 03:11
@github-actions github-actions Bot added build Monorepo organization, Gradle/CMake/Bazel, upstream_utils, etc component: wpical WPIcal labels Sep 6, 2026
@Gold856
Gold856 force-pushed the remove-absolute-path-in-minimath branch from ea116f8 to f846169 Compare September 6, 2026 03:17
use List::Util qw(min);
use List::MoreUtils qw(pairwise);

say "// THIS IS AUTO-GENERATED BY $0. DO NOT EDIT BY HAND\n";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So… $0 should be the literal argv[0]. We could run this script by relative path rather than by the absolute path we currently use, which should avoid the problem without requiring a patch?

@Gold856
Gold856 force-pushed the remove-absolute-path-in-minimath branch from f846169 to 8db3779 Compare September 6, 2026 21:19
@github-actions github-actions Bot removed the build Monorepo organization, Gradle/CMake/Bazel, upstream_utils, etc label Sep 6, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8db3779984

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread tools/wpical/generate_mrcal.py Outdated
Comment thread tools/wpical/generate_mrcal.py Outdated
@Gold856
Gold856 force-pushed the remove-absolute-path-in-minimath branch from 8db3779 to 76a8d11 Compare September 7, 2026 06:06
Comment thread tools/wpical/generate_mrcal.py Outdated
@Gold856
Gold856 force-pushed the remove-absolute-path-in-minimath branch from 76a8d11 to 2eb7f8e Compare September 7, 2026 07:22
@PeterJohnson
PeterJohnson merged commit b76d022 into wpilibsuite:main Sep 7, 2026
45 checks passed
@Gold856
Gold856 deleted the remove-absolute-path-in-minimath branch September 7, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants